package cn.jobstart.service;

import cn.jobstart.model.TalentSubscriptionTask;
import cn.jobstart.modelExt.SpiderMonitorExt;
import cn.jobstart.modelExt.TalentSubscriptionTaskExt;
import cn.jobstart.searchExt.SpiderMonitorSearchExt;
import cn.jobstart.pubInter.IBaseService;
import cn.jobstart.spider.listener.ISkSpiderListener;
import cn.jobstart.spider.listener.SkSpiderListener;


/**
*    @author sunke
*    @Date 2023-09-20 10:25:36
*    @description SpiderMonitorService      爬虫监控
*/
public interface ISpiderMonitorService extends IBaseService<SpiderMonitorExt, SpiderMonitorSearchExt,String> {


    /**
     * 从监听里得到数据
     * @param spiderMonitor
     * @return
     */
    SpiderMonitorExt addLog(SpiderMonitorExt spiderMonitor);

    /**
     * 从订单任务创建对象
     * @param task
     * @eturn
     */
    SpiderMonitorExt createByTask(TalentSubscriptionTaskExt task);

}